#ifndef DATARECORD_H
#define DATARECORD_H
#include <stdio.h>
#include <QString>
#include <QByteArray>
#include <QDebug>
#define D_WRITE_DATARECORD_DATA_TO_FILE 1
#define D_WRITE_DATARECORD_DATA_TO_SCREEN 0

class DataRecord
{
public:
    DataRecord(QString fileName, int _recordFlag, int _maxRecordNumber);
    int addItem();
    int writeRecord(double data);
    int writeRecord(int data);
    int writeRecord(float data);
    int setRecordOn();
    int setRecordOff();
    int getCurrentRecordId();

private:
    FILE* fileObject ;
    int record_id;
    int recordFlag;
    int maxRecordNumber;
};

#endif // DATARECORD_H
